From: John Paul Wallington Date: Tue, 6 Jul 2004 05:07:20 +0000 (+0000) Subject: (Fclear_string): Signal an error if STRING is not a string. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21718 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5886710f96107e5a1f9b67171799d475d50ca347;p=emacs.git (Fclear_string): Signal an error if STRING is not a string. --- diff --git a/src/fns.c b/src/fns.c index 693f3eaaa93..cbd0dc91d2b 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2370,6 +2370,7 @@ This makes STRING unibyte and may change its length. */) (string) Lisp_Object string; { + CHECK_STRING (string); int len = SBYTES (string); bzero (SDATA (string), len); STRING_SET_CHARS (string, len);